package pt.isec.a21210392.a21190220.ludotwist;

import java.io.Serializable;

import pt.isec.a21210392.a21190220.ludotwist.GameLogic.Pin;


public class ToDraw implements Serializable
{
	private static final long serialVersionUID = 1L;
	private Pin id;
	private double line;
	private double column;
	private int image;
	
	public ToDraw(Pin id)
	{
		this.id = id;
	}
	public ToDraw(Pin id, double line, double column, int image)
	{
		this.id = id;
		this.line = line;
		this.column = column;
		this.image = image;
	}
	
	public int getImage()
	{
		return image;
	}
	public double getLine()
	{
		return line;
	}
	public double getColumn()
	{
		return column;
	}
	public Pin getId()
	{
		return id;
	}
	@Override
	public boolean equals(Object o) 
	{
		if (o instanceof ToDraw)
		{
			return ((ToDraw)o).getId().equals(id);
		}
		return false;
	}
}
